//
//  ViewController.swift
//  ICCarouselDemo
//
//  Created by cuichengcheng on 2017/12/6.
//  Copyright © 2017年 cuichengcheng. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        self.view.backgroundColor = .white
        self.title = "hello carousel"
        
        self.navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", style: .plain, target: self, action: #selector(helloCarousel))
        
        let lab = UILabel()
        lab.font = UIFont.systemFont(ofSize: 25, weight: UIFont.Weight(rawValue: 0.8))
        lab.textAlignment = .center
        self.view.addSubview(lab)
        lab.text = "hello carousel"
        lab.center = self.view.center
        lab.bounds = CGRect(x: 0, y: 100, width: self.view.bounds.size.width, height: 100)
        
    }
    @objc func helloCarousel() {
        let vc = ICCarouselVC()
        self.navigationController?.pushViewController(vc, animated: true)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

